package homework_06.homework_08;

/**
 * 定义一个Constructor类： 创建两个对象，分别是zhangsan，33岁，1.73；lishi，44，1.74 ，分别调用对象的sayHello()方法。
 */
public class Constructor {
    String name;
    int age;
    float height;

    public Constructor() {
    }

    public Constructor(String name, int age, float height) {
        this.name = name;
        this.age = age;
        this.height = height;
    }
    public String sayHell(){
        String hello="hello,my name is "+name;
        return hello;
    }
}
